package com.lagou.edu.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zjy
 */
@FeignClient(value = "lagou-service-code")
@RequestMapping("/code")
public interface CodeFeignClient {


    /**
     * 调用验证码微服务校验验证码
     * @param email
     * @param code
     * @return
     */
    @GetMapping("/validate/{email}/{code}")
    Integer validateCode(@PathVariable String email,@PathVariable String code);

}
